// 学生管理api
module.exports = app => {
  const { router, controller, middleware } = app;
  //查看学生详情
  router.get('/api/getstudent', middleware.menu('get'), controller.student.getstudent);
  router.get('/api/outclass', middleware.menu('get'), controller.student.outclass);
  router.post('/api/posttudent', middleware.menu('get'), controller.student.posttudent);
  //添加学生
  router.post('/api/createstudent', middleware.menu('create'), controller.student.createstudent);
};
